#!/bin/sh -e

chmod 777 /tmp
mkdir -p /var/log/supervisor
mkdir -p /var/log/redis
chown redis:redis /var/log/redis
rsync -av /root.init/ /root/
tldr --update
updatedb
rcLocal=$(cat /etc/rc.local.init)
mv /etc/rc.local.init /etc/rc.local
sh -c $rcLocal
